package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.common.core.domain.BaseVo;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 项目预算分项明细
 * </p>
 * @author WuZH
 * @since 2024-05-14
 */
@Getter
@Setter
@TableName ("erp_project_budget_detail_info")
@ApiModel (value = "项目预算分项明细", description = "项目预算分项明细")
public class ProjectBudgetDetailEntity extends BaseVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ("id")
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty ("项目预算类型;1:材料预算;2:分包预算;3:人工预算;4:机具预算;5:费用预算")
    @TableField ("type")
    private Integer type;

    @ApiModelProperty ("项目Id")
    @TableField ("project_id")
    private String projectId;

    @ApiModelProperty ("物料Id，材料预算时使用该字段，取自材料表")
    @TableField ("material_id")
    private String materialId;

    @ApiModelProperty ("分包预算的工作类型;人工预算的工种名称;机具预算的机具类别;费用预算的一级科目名称")
    @TableField ("work_type")
    private String workType;

    @ApiModelProperty ("分包预算的工作内容;人工预算的人工说明;机具预算的机具名称;费用预算的差旅科目")
    @TableField ("work_content")
    private String workContent;

    @ApiModelProperty ("项目特征，分包预算使用该字段")
    @TableField ("project_feature")
    private String projectFeature;

    @ApiModelProperty ("单位")
    @TableField ("unit")
    private String unit;

    @ApiModelProperty ("首次预算量,新增材料预算时录入该字段")
    @TableField ("frist_number")
    private String fristNumber;

    @ApiModelProperty ("调整预算量,调整数量后录入该字段,可正可负")
    @TableField ("change_number")
    private String changeNumber;

    @ApiModelProperty ("预算总数量,取前两字段和")
    @TableField ("number")
    private String number;

    @ApiModelProperty ("单价")
    @TableField ("unit_price")
    private String unitPrice;

    @ApiModelProperty ("总价")
    @TableField ("total_price")
    private String totalPrice;

    @ApiModelProperty ("备注")
    @TableField ("remarks")
    private String remarks;

    @ApiModelProperty ("创建人Id")
    @TableField ("user_id")
    private String userId;

    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    private Date createTime;

    @ApiModelProperty ("更新时间")
    @TableField ("change_time")
    private Date changeTime;

    @TableField ("is_used")
    private Integer isUsed;


}
